package com.citicup.backend.dao;

import com.citicup.backend.entity.User;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

public interface UserMapper extends CrudRepository<User, Integer> {

    List<User> findByUsernameAndPassword(String username, String password);

    List<User> findByUsername(String username);


}